<?php

m2import("phpinchains/util/db/DbEntityBase.php");
m2import("model/entity/WineryOrderFormCatEntity.php");

class WineryOrderFormEntryEntity extends phpinchains_util_db_DbEntityBase {

    function WineryOrderFormEntryEntity($actionform, phpinchains_util_db_Preprocessor $preprocessor = null, phpinchains_util_db_Postprocessor $postprocessor = null)
    {
        $af = new phpinchains_ActionForm();
        $this->table = base_ApplicationContext::getInstance()->getAccessFactory()->getConnection()->getTableprefix()."_wineryOrderFormEntry";
        $this->fields = array(
            array('id', 'int'),
            array('wofcat_id', 'int'),
            array('wofevisible', 'string'),
            array('wofeno', 'string'),
            array('wofeproduct', 'string'),
            array('wofedescr', 'string'),
            array('wofeyear', 'string'),
            array('wofeliter', 'decimal'),
            array('wofeprice', 'decimal'),
            array('wofeimg', 'blob'),
            array('wofeimg_size', 'string'),
            array('wofeimg_filename', 'string'),
            array('wofeimg_type', 'string')
        );
        $this->defaultvalues = array (
          'wofevisible' => 'N',
        );
        $this->index = array (
        );
        $this->blobs = array (
          0 => 'wofeimg',
        );
        $this->foreignKeys = array(
            'wofcat_id' => 'WineryOrderFormCatEntity'
        );
        
        parent::phpinchains_util_db_DbEntityBase($af, $preprocessor, $postprocessor);
    }

}


?>